﻿using System.Windows;
using GalaSoft.MvvmLight;
using KinectCurve.View;

namespace KinectCurve.ViewModel
{
    public partial class MainViewModel : ViewModelBase
    {
        public MainViewModel()
        {
            if (IsInDesignMode)
            {
                // Code runs in Blend --> create design time data.
                TimeToPlay = "03:00";
                IsGameInProgressVisibility = Visibility.Visible;
                IsGameInProgress = true;
            }
            else
            {
                // Code runs "for real": Connect to service, etc...
                MessageDefinitions();          
            }
        }

        public override void Cleanup()
        {
            // Clean own resources if needed
            base.Cleanup();
        }
    }
}